/**
 * @author Jordan Barroga
 * @author Reed Pasatiempo
 */

import java.awt.GridLayout;

import javax.swing.*;

public class SettingsMenu 
{

	static Settings temp;
	
	public void SettingsMenu()
	{
		temp = new Settings();
	}
	
	public void createGUI()
	{
		JFrame frame = new JFrame("Settings Menu");
		JPanel main = new JPanel();
		JTabbedPane menu = new JTabbedPane();
		main.add(menu);
		JPanel snake = new JPanel();
		snake.setSize(300,400);
		JPanel board = new JPanel();
		board.setSize(300, 400);
		JPanel bg = new JPanel();
		bg.setSize(300, 400);
		
		
		frame.setDefaultCloseOperation(frame.HIDE_ON_CLOSE);
		
		frame.add(main);
		
		frame.setSize(500, 600);
		
		frame.setVisible(true);
		
		// Tabbed Menu
		
		menu.addTab("Snake", snake);
		JButton test = new JButton();
		snake.add(test);
		menu.addTab("Board", board);
		JPanel bgPanel = new JPanel(new GridLayout(0, 1));
		bgPanel.setSize(300, 400);
		menu.addTab("Background", bgPanel);
		
		//====================================================================================
		//
		//					SNAKE
		//
		//====================================================================================
		
		//====================================================================================
		//
		//					BOARD
		//
		//====================================================================================
		
		//====================================================================================
		//
		//					BACKGROUND
		//
		//====================================================================================

		// GOTTA "setMnemonic" and "setActionCommand"
		JRadioButton cyan = new JRadioButton("Cyan");
		JRadioButton blue = new JRadioButton("Blue");
		JRadioButton darkGray = new JRadioButton("Dark Gray");
		JRadioButton gray = new JRadioButton("Gray");
		JRadioButton green = new JRadioButton("Green");
		JRadioButton lightGray = new JRadioButton("Light Gray");
		JRadioButton magenta = new JRadioButton("Magenta");
		JRadioButton orange = new JRadioButton("Orange");
		JRadioButton pink = new JRadioButton("Pink");
		JRadioButton red = new JRadioButton("Red");
		JRadioButton white = new JRadioButton("White");
		JRadioButton yellow = new JRadioButton("Yellow");
		JRadioButton black = new JRadioButton("Black");
		black.setSelected(true);
		
		// adding to groups keeps multiples from being checked
		ButtonGroup bgGroup = new ButtonGroup();
		bgGroup.add(cyan);
		bgGroup.add(blue);
		bgGroup.add(darkGray);
		bgGroup.add(gray);
		bgGroup.add(green);
		bgGroup.add(lightGray);
		bgGroup.add(magenta);
		bgGroup.add(orange);
		bgGroup.add(pink);
		bgGroup.add(red);
		bgGroup.add(white);
		bgGroup.add(yellow);
		bgGroup.add(black);
		
		// adding them to the panel
		bgPanel.add(cyan);
		bgPanel.add(blue);
		bgPanel.add(darkGray);
		bgPanel.add(gray);
		bgPanel.add(green);
		bgPanel.add(lightGray);
		bgPanel.add(magenta);
		bgPanel.add(orange);
		bgPanel.add(pink);
		bgPanel.add(red);
		bgPanel.add(white);
		bgPanel.add(yellow);
		bgPanel.add(black);
	}
	
	public Settings returnSettings()
	{
		return temp;
	}
}
